package org.bob.learn.consumer.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.bob.learn.consumer.api.producer.ProducerApiService;
import org.bob.learn.consumer.service.ConsumerService;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ConsumerServiceImpl implements ConsumerService {

    private ProducerApiService producerApiService;

    public ConsumerServiceImpl(ProducerApiService producerApiService) {
        this.producerApiService = producerApiService;
    }

    @Override
    public String msgOfId(Long id) {
        return producerApiService.msg(id);
    }
}
